"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const components_1 = require("@tarojs/components");
const taro_ui_1 = require("taro-ui");
const taro_ui_2 = require("taro-ui");
const taro_1 = require("@tarojs/taro");
require("./fristpage.scss");
const react_1 = require("react");
function fristpage() {
    const [current, setCurrent] = react_1.useState(5);
    const handleClick = () => {
        taro_1.default.navigateTo({
            url: "/pages/tuisong/tuisong"
        });
    };
    const handleClick1 = (value) => {
        if (value === 0) {
            taro_1.default.navigateTo({
                url: '/pages/fristpage/fristpage'
            });
        }
    };
    const innerAudioContext = taro_1.default.createInnerAudioContext();
    innerAudioContext.autoplay = true;
    innerAudioContext.src = 'https://6763-gcxyup-9gzg5uqx2884e5f1-1310436931.tcb.qcloud.la/%E5%A5%8B%E6%96%97%EF%BC%81-%E7%8C%B4%E5%AD%90%E9%9F%B3%E6%82%A6houzi8.com.mp3?sign=6688ff2ad74ee7b2fc0c972a88620d31&t=1648275759';
    innerAudioContext.onPlay(() => {
        console.log('开始播放');
    });
    innerAudioContext.onError((res) => {
        console.log(res.errMsg);
        console.log(res.errCode);
    });
    return (<components_1.View>
            <components_1.Image className="pic" src={require('C:/Users/wx/Desktop/project/gcxy-up/client/src/pages/imag/shouye.jpg')}/>
            <taro_ui_1.AtAvatar className="user" size="small" circle image=''></taro_ui_1.AtAvatar>
            <components_1.View className="title">奶爸签到</components_1.View>
            <components_1.View className="audio">
            </components_1.View>
            <components_1.View className="date">三月二十五日</components_1.View>
            <components_1.View className="hello">你好</components_1.View>
            <components_1.View className="name">XXX</components_1.View>
            <components_1.View className="open" onClick={handleClick}>打开今日画报</components_1.View>
            <taro_ui_2.AtTabBar backgroundColor='transparent' fixed tabList={[
        { title: '首页', image: require('C:/Users/wx/Desktop/project/gcxy-up/client/src/pages/imag/人物-03.png') },
        { title: '探索', image: require('C:/Users/wx/Desktop/project/gcxy-up/client/src/pages/imag/人物-07.png') },
        { title: '游览', image: require('C:/Users/wx/Desktop/project/gcxy-up/client/src/pages/imag/人物-10.png') },
        { title: '保护', image: require('C:/Users/wx/Desktop/project/gcxy-up/client/src/pages/imag/人物-14.png') },
        { title: '新闻创', image: require('C:/Users/wx/Desktop/project/gcxy-up/client/src/pages/imag/avatar30.png') }
    ]} onClick={handleClick1} current={current}/>
        </components_1.View>);
}
exports.default = fristpage;
//# sourceMappingURL=fristpage.jsx.map